package com.slipper.codeless.resolve.delete;


import java.util.ArrayList;
import java.util.List;

public class Delete {
    private String tableName; // 删除数据的表名
    private boolean cleanTable = false; // 是否清空表
    private String pkIdName; // 删除数据表的主键名
    private List<String> pkIdList = new ArrayList<>(); // 删除的主键值

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public boolean isCleanTable() {
        return cleanTable;
    }

    public void setCleanTable(boolean cleanTable) {
        this.cleanTable = cleanTable;
    }

    public String getPkIdName() {
        return pkIdName;
    }

    public void setPkIdName(String pkIdName) {
        this.pkIdName = pkIdName;
    }

    public List<String> getPkIdList() {
        return pkIdList;
    }

    public void setPkIdList(List<String> pkIdList) {
        this.pkIdList = pkIdList;
    }

    public void addPkId(String pkId) {
        this.pkIdList.add(pkId);
    }
}
